import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

const hr: AppRouteModule = {
  path: '/hr',
  name: 'HRModule',
  component: LAYOUT,
  redirect: '/hr/commission/ledger',
  meta: {
    orderNo: 60,
    icon: 'ant-design:dollar-circle-outlined',
    title: '人资管理',
  },
  children: [
    {
      path: 'commission/ledger',
      name: 'HrCommissionLedger',
      component: () => import('/@/views/hr/commission/LedgerList.vue'),
      meta: {
        title: '提成账本',
        icon: 'ant-design:profile-outlined',
      },
    },
    {
      path: 'commission/rule',
      name: 'HrCommissionRule',
      component: () => import('/@/views/hr/commission/RuleList.vue'),
      meta: {
        title: '提成规则',
        icon: 'ant-design:setting-outlined',
      },
    },
    {
      path: 'commission/split',
      name: 'HrCommissionSplit',
      component: () => import('/@/views/hr/commission/SplitList.vue'),
      meta: {
        title: '分摊配置',
        icon: 'ant-design:user-switch-outlined',
      },
    },
  ],
};

export default hr;


